<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="referrer" content="always">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
		<title>提现</title>
		<link rel="stylesheet" type="text/css" href="css/reset.css"/>
		<link rel="stylesheet" href="css/picker.css">
		<style type="text/css">
			.formview{
				border-bottom: 1px solid #ececec;
				font-size: .3rem;
				margin-bottom: 0.2rem;
				padding:0 .24rem;
				position: relative;
				margin-top: .4rem;
			}
			.formview img{
				position: absolute;
				width: .44rem;
				height: auto;
				left: 0;
				    top: 0.2rem;
			}
			.formview input{
				width: 70%;
				height: 100%;
				outline: none;
				border: none;
				padding: .3rem 0.2rem;
				font-size: .26rem;
				box-sizing: border-box;
			}
			.formview i{
				font-size: .24rem;
				color: #0192ff;
			}
			
			.formview span{
				color: #333;
			}
			.add_address{
				display: block;
				margin: .5rem auto;
				border-radius: .1rem;
				width: 80%;
				height: .8rem;
				text-align: center;
				line-height: .8rem;
				font-size: .32rem;
				color: #fff;
				background: #221815;
			}
			.form p{
				padding: 0 .24rem;
				color: #a1a1a1;
				font-size: .22rem;
			}
		</style>
		<link rel="stylesheet" type="text/css" href="css/LArea.css"/>
	</head>
	<body>
		<form class="form">
			<div class="formview clearfix">
				<span>金额</span>
				<input type="number" name="money" autocomplete="off" placeholder="可提现￥20" />
				<i class="all">全部提现</i>
			</div>
			<p>为了资金安全，每天只能提现一次，单笔提现不能超过200元</p>
		</form>
		
		<a href="javascript:;" class="add_address">提交</a>
		
	</body>
	<script src="js/jq-1.9.1.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/rem.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/layer/layer.js" type="text/javascript" charset="utf-8"></script>
	
	<script>
		$(function(){
			var allMoney = 35;
			$('input[name=money]').attr('placeholder','可提现￥'+allMoney)
			
			$('.all').click(function(){
				$('input[name=money]').val(allMoney)
			})
			
			$('.add_address').click(function(){
				if($('input[name=money]').val() == "" || $('input[name=money]') == 0){
					layer.msg("请输入提现金额！")
				}
			})
		})
	</script>
</html>
